<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>过滤器-字符串</title>
    <script type="text/javascript" src="../libs/angular/angular.min.js"></script>
</head>
<body ng-app ng-init="myObj = {name:'Jack', age: 21}">
    <!--将结果格式化为大写，结果为 CHINA-->
    <h1>{{"china" | uppercase}}</h1>
    <!--将结果格式化为小写，结果为 china--> 
    <h1>{{"CHINA" | lowercase}}</h1>
    <!--将结果转为标准的 JSON 格式字符串，结果为 { "name": "Jack", "age": 21 }-->
    <h1>{{ myObj | json}}</h1>
</body>
</html>
